package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;

public interface JurisdictionService {
    PageResult findByPage(QueryPageBean queryPageBean);

    boolean add(String name, String keyword, String description, Integer[] checkitemIds);

    void delById(Integer id);

    Permission findById(Integer id);

    List<Role> findAll();

    Map<String, Object> findByIdRole(Integer id);

    void edit(Integer[] checkitemIds, Permission permission);
}
